{% extends "base.html" %}
{% block content %}
<h2>Departments</h2>
<table>
<tr>
  <th>ID</th>
  <th>Department Name</th>
  <th>Location</th>
  <th>Capacity</th>
  <th>Number of Doctors</th>
</tr>
{% for d in depts %}
<tr>
  <td>{{ d.dept_id }}</td>
  <td>{{ d.name }}</td>
  <td>{{ d.location }}</td>
  <td>{{ d.capacity }}</td>
  <td>{{ d.staff_count }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}
